package com.yet.container.registry;

import java.util.List;
import java.util.Map;

import com.yet.container.Container;
import com.yet.container.registry.RegistryMeta.ServiceMeta;

public interface RegistryCenter extends Container {

	void register(RegistryMeta meta);

	void unregister(RegistryMeta meta);

	void subscribe(RegistryMeta.ServiceMeta serviceMeta);

	void unsubscribe(RegistryMeta.ServiceMeta serviceMeta);

	List<RegistryMeta.Address> lookup(RegistryMeta.ServiceMeta serviceMeta);

	Map<ServiceMeta, List<RegistryMeta.Address>> load();

	String getName();

}
